export interface ResponseData {
    code: number,
    message: string,
    ok: boolean
}
// 定义SKU对象的ts类型
export interface SkuData {
    category3Id: string | number,
    spuId: string | number,
    tmId: string | number,
    skuName: string,
    price: number | string,
    weight: number | string,
    skuDesc: string,
    skuAttrValueList: skuAttr,
    skuSaleAttrValueList: skuSaleAttr,
    skuDefaultImg: string,
    isSale?: number,
    id?: number
}
// 平台属性值
export interface skuAttrValue {
    id?: number,
    valueName?: string,
    attrId: string | number,
    valueId: string | number
}
// 平台属性
export type skuAttr = skuAttrValue[]
// 销售属性值
export interface skuSaleAttrValue {
    id?: number,
    saleAttrValueName?: string,
    saleAttrId: number | string,
    saleAttrValueId: number | string
}
// 销售属性
export type skuSaleAttr = skuSaleAttrValue[]
// 获取SKU接口返回的数据ts类型
export interface skuResponseData extends ResponseData {
    data: {
        records: SkuData[],
        total: number,
        size: number,
        current: number,
        orders: [],
        optimizeCountSql: boolean,
        hitCount: boolean,
        countId: null,
        maxLimit: null,
        searchCount: boolean,
        pages: number
    }
}
// 获取SKU商品详情接口的ts类型
export interface SkuInfoData extends ResponseData {
    data: SkuData
}